/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package acceso.tags;

import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;

/**
 *
 * @author john
 */
public class ImprimirTag extends BodyTagSupport{
    
    private String json;
    private String codimp;
    
    @Override
    public int doStartTag() throws JspException {


        HttpSession s = pageContext.getSession();
        s.setAttribute(getCodimp(), getJson());

        return EVAL_PAGE;
    }

    /**
     * @return the json
     */
    public String getJson() {
        return json;
    }

    /**
     * @param json the json to set
     */
    public void setJson(String json) {
        this.json = json;
    }

    /**
     * @return the codimp
     */
    public String getCodimp() {
        return codimp;
    }

    /**
     * @param codimp the codimp to set
     */
    public void setCodimp(String codimp) {
        this.codimp = codimp;
    }
    
    
    
}
